package com.lotusfall.service.impl;

import com.lotusfall.service.PermissionService;
import com.lotusfall.mapper.PermissionMapper;
import com.lotusfall.pojo.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> listPermissionByUserid(Long userid) {
        return permissionMapper.listPermissionByUserId(userid);
    }
}
